import request from "@/utils/request";

// 手工提成基础配置查询
export function HardNewQuery(data) {
  return request({
    url: "/store/conf/hard/award/new/query",
    method: "post",
    data: data,
  });
}

// 手工提成基础配置
export function HardawardNew(data) {
  return request({
    url: "/store/conf/hard/award/new",
    method: "post",
    data: data,
  });
}

// 创建技师上钟类型提成
export function CreateTeacherProject(data) {
  return request({
    url: "/store/conf/2025/create/teacher/project",
    method: "post",
    data: data,
  });
}

// 查询技师上钟类型提成
export function getTeacherProject(query) {
  return request({
    url: "/store/conf/2025/query/teacher/project",
    method: "post",
    params: query,
  });
}

// 创建充卡提成比例
export function CreateRechargeReception(data) {
  return request({
    url: "/store/conf/2025/create/recharge/reception",
    method: "post",
    data: data,
  });
}

// 充卡提成比例查询
export function getRechargeReception(query) {
  return request({
    url: "/store/conf/2025/query/recharge/reception",
    method: "post",
    params: query,
  });
}

// 创建前台提成
export function CreateReceptionConf(data) {
  return request({
    url: "/store/reception-conf/create",
    method: "post",
    data: data,
  });
}

// 获得前台提成分页
export function getReceptionConfPage(query) {
  return request({
    url: "/store/reception-conf/page",
    method: "get",
    params: query,
  });
}

// 获得前台提成
export function getReceptionConf(query) {
  return request({
    url: "/store/reception-conf/get",
    method: "get",
    params: query,
  });
}

// 更新前台提成
export function UpdateReceptionConf(data) {
  return request({
    url: "/store/reception-conf/update",
    method: "put",
    data: data,
  });
}

// 删除前台提成
export function DeleteReceptionConf(query) {
  return request({
    url: "/store/reception-conf/delete",
    method: "delete",
    params: query,
  });
}

// 创建手工扣减
export function CreateDeduction(data) {
  return request({
    url: "/store/conf/2025/create/project/deduction",
    method: "post",
    data: data,
  });
}

// 查询手工扣减
export function getDeduction(data) {
  return request({
    url: "/store/conf/2025/query/project/deduction",
    method: "post",
    data: data,
  });
}

// 手工提成时间配置查询
export function getRechargeTimeQuery(data) {
  return request({
    url: "/store/conf/2025/recharge/time/query",
    method: "post",
    data: data,
  });
}

// 手工提成时间配置修改
export function CreateRechargeTimeQuery(data) {
  return request({
    url: "/store/conf/2025/recharge/time/edit",
    method: "post",
    data: data,
  });
}
